package com.doit.day06

import scala.io.Source

object Test {
  def main(args: Array[String]): Unit = {

    val source= Source.fromURL("http://www.baidu.com","UTF-8")
    val lineIterator =source.getLines
    for(l<-lineIterator){
      println(l.toString())
    }
  }
}
